<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script type="text/javascript" src="jQuery/cutPage.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>商品信息修改页面</title>
<style>
td{
width:11%;
}

#container{

width:1600px;
background:#cccc55;
height:100%;
}

</style>
</head>
<body  onLoad="cutPage()">
<center>
<div id="container" >

	<h3 align="center">商品信息修改页面 </h3>
	<p style="color:orange; font-weight: 900">管理员：${msg }</p> 
	<p style="color:blue; font-weight: 900">${f }</p> 
<table border="1" width="100%" style="text-align:center;float:left;background:orange">          <!-- 这个是利用table做标题 -->
 <tr>
  <td>商品位置id</td>
  <td>商品类型</td>
  <td>卖家姓名</td>
  <td>卖家电话</td>
  <td>商品标题</td>
  <td>商品内容</td>
  <td>商品图片</td>
  <td >上架时间</td>
  <td style="width:7%">管理操作</td>
 
 </tr>
</table>                                    
 <c:forEach items="${newsList }" var="news">
<!-- form action="<c:url value='/NewsServlet?method=NewsEdit'/>" method="post"-->              <!-- 这个是表单里嵌入table  点击预览后跳转到预览页面-->
<form action="adminUpadteNews" method="post">
<table border="1" align="center" width="100%" style="text-align:center;float:left">
  <tr> 
  	<td><input type="text" name="newsid" value="${news.newsid }" disabled >
   	<input type="text" name="newsid" value="${news.newsid }"style="display:none"></td>
   <td><input type="text" name="newsclass" value="${news.newsclass }"  ></td>
   <td><input type="text" name="newsauthod"  value="${news.newsauthod }"></td>
    <td><input type="text" name="tell"  value="${news.tell }"></td>
   <td><input type="text" name="newstitle"  value="${news.newstitle}" ></td>
   <td><input type="text" name="newscontent"  value="${news.newscontent }"></td>
   <td><input type="text" name="newsimg"  value="${news.newsimg}" ></td>
    <td ><input type="text" name="newspushdays"  value="${news.newspushdays }"></td>
   <td style="width:7%"><input type="submit" value="确认修改" /></td>
   <!--  <td style="width:6%"><input type="submit" value="删除"  onclick="javascript:this.form.action='<c:url value='' />';"/></td>--> 
 </tr>
</table>
</form>
</c:forEach>
<br/>
<br/>
<p id="tips"></p>
<p style="color: red;" id="tip"></p>
<button id="forward">上一页</button>
<input type="text" size="3" id="pageValue" placeholder="页数">
<input type="button" value="前往" id="go" >
<input type="text" size=4 id="howLow" placeholder="行数">
<input type="button" id="change" value="修改显示行数">
<button id="next">下一页</button>
<P id="nowPage"></P>



</div>
</body></center>
</html>